project('TextConvert', 'c', version: '0.1.0')

gnome = import('gnome')

adwaita_dep = dependency('libadwaita-1', method: 'pkg-config')

TextConvert_resources = gnome.compile_resources(
  'TextConvert',
  'TextConvert.gresources.xml',
  source_dir: '.',
  c_name: 'text_convert_resources',
)

src = [
  'main.c',
  'TextConvertApplication.c',
  'TextConvertWindow.c',
]

exe = executable(
  'textconvert',
  TextConvert_resources,
  sources: src,
  dependencies: adwaita_dep,
  cpp_args: '-g',
  install: false,
)

test('测试 TextConvert', exe, timeout: 120)
